package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.entity.product.ProductSku;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductSkuMapper {
    void batchSave(List<ProductSku> skuList);

    List<ProductSku> selectBySpuId(Long spuId);

    void update(ProductSku productSku);

    void updateByProductId(@Param("productId") Long productId, @Param("status")Integer status);
}
